/*
 * Copyright (C), 2002-2013, 苏宁易购电子商务有限公司
 * FileName: ExchangeActivityRule.java
 * Author:   12070644@cnsuning.com
 * Date:     2012-12-22 上午00:00:00
 */
package com.suning.sawp.po.exchange;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 实体类发券规则
 *
 * @author 12070644@cnsuning.com
 */
@Entity(name = "exchange_activity_rule")
public class ExchangeActivityRule implements Serializable {
    /**
     * Serial UID
     */
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    /**
     * 活动编号
     */
    private String activityId;
    /**
     * 配置类型 1表示订单状态
     * 2表示品类
     */
    private Integer configType;
    /**
     * 配置值
     */
    private String configValue;

    /**
     * Get id
     *
     * @return id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.TABLE)
    @Column(name = "id")
    public Long getId() {
        return this.id;
    }

    /**
     * Set id
     *
     * @param id id
     */

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * Get activityId
     *
     * @return activityId
     */
    @Column(name = "activity_id")
    public String getActivityId() {
        return this.activityId;
    }

    /**
     * Set activityId
     *
     * @param activityId 活动编号
     */

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    /**
     * Get configType
     *
     * @return configType
     */
    @Column(name = "config_type")
    public Integer getConfigType() {
        return this.configType;
    }

    /**
     * Set configType
     *
     * @param configType 配置类型
     */

    public void setConfigType(Integer configType) {
        this.configType = configType;
    }

    /**
     * Get configValue
     *
     * @return configValue
     */
    @Column(name = "config_value")
    public String getConfigValue() {
        return this.configValue;
    }

    /**
     * Set configValue
     *
     * @param configValue 配置值
     */

    public void setConfigValue(String configValue) {
        this.configValue = configValue;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ExchangeActivityRule{");
        sb.append("id='").append(id).append('\'');
        sb.append(", activityId='").append(activityId).append('\'');
        sb.append(", configType='").append(configType).append('\'');
        sb.append(", configValue='").append(configValue).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
